<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
      #i1{
        color: green;
      }

      .c1{
        color: blue;
      }
      input[type='text'],body>p{
        background-color: red;
      }
      body>div>div>p{
        color: pink;
      }
      div>div>p{
        background-color: yellow;
      }
      /*未访问*/
      a:link{
        color: red;
      }
      /*访问过*/
      a:visited{
        color: pink;
      }
      /*悬停*/
      a:hover{
        color: green;
      }
      /*点击*/
      a:active{
        color: yellow;
      }
    </style>
</head>
<body>
<a href="01选择器.html">超链接1</a>
<a href="../b.jpg">超链接2</a>
<a href="http://www.douyu.com">超链接3</a>

<ul>
  <li id="i1">刘德华</li>
  <li>张学友</li>
  <li class="c1">郭富城</li>
</ul>
<p>香蕉</p>
<p class="c1">苹果</p>
<input type="text">
<input type="password">
<div>
  <p>p1</p>
  <div><p>p2</p></div>
  <div><div><p>p3</p></div></div>
</div>
</body>
</html>